<script lang="ts" setup>
// @ts-ignore
let props = defineProps({
    title: '' as any,
    image: '' as any,
    desc: '' as any
});
</script>
<template>
    <div class="col-user-6">
        <div class="item block">
            <div class="user-item-text">
                <div class="user-text-muted">{{ props.title }}</div>
                <div class="user-font-number" :title="props.desc">{{ props.desc?props.desc:'暂无信息' }}</div>
            </div>
            <div class="user-item-icon">
                <img :src="props.image"
                     alt="" class="user-item-icon-img">
            </div>
        </div>
    </div>
</template>
<style scoped>
.col-user-6 {
    -webkit-box-flex: 0;
    flex: 0 0 auto;
    width: 50%;
    margin-top: calc(var(--fqxk-y));
    padding-right: calc(var(--fqxk-x)* 0.5);
    padding-left: calc(var(--fqxk-x)* 0.5);
}

.col-user-6 .item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.25rem 1rem;
}

.col-user-6 .block {
    background: linear-gradient(180deg, #f0f2f7, #fff);
    border: 2px solid #fff;
    box-shadow: 6px 6px 15px 0 rgb(136 167 225 / 10%), -6px -6px 15px 0 #fff;
    border-radius: var(--radius);
    transition: all 0.2s;
}
.user-text-muted{
    font-weight: bold;
    font-size: 1rem;
}
.user-font-number{
    line-height: 1;
    max-width: 7.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    word-break: break-all;
}
.user-item-icon-img{
    width: 4.5rem;
    height: 4.5rem;
}
@media (max-width: 1152px) {
    .col-user-6 {
        width: 100%;
    }
}
</style>
